StringScanner.SkipOverCharacter Function
Syntax
Chars_Skipped as N = SkipOverCharacter as N(characters as c)
Arguments
- Chars_Skipped
The number of characters the offset has been moved.
- characters
A list of characters to skip over. Case sensitive.
Description
Skip until we are on a character not in the group. Return # of characters skipped over.
Discussion
The <StringScanner>.SkipOverCharacter() function moves the offset to the next character not in the Chars list and returns the number of characters that the offset has moved. Note : The Chars argument is case sensitive.
Example
dim scanner as P dim txt as C txt = <<%text% This1234 is wonderful prose written by a technical writer of note. %text% scanner = stringscanner.create(txt) ? scanner.SkipOverCharacter("this") = 0 ? scanner.skipovercharacter(" hisTw") = 9 ? scanner.GetToOffset() = "This is w" ? scanner.getremainder() = onderful prose written by a technical writer of note.
See Also